<template>
  {{ msg }} --  {{ message }} -- storage--{{ info }}
  <el-button @click="add">按钮</el-button>
  <el-button @click="handleEmit">兄弟组件传参</el-button>
  <side v-model:title="test"></side>
</template>
<script setup>
import Side from '@/components/Side.vue'
import { ref } from 'vue'
import emitter from '@/utils/bus'
import { useStorage } from '@vueuse/core'
const info = useStorage('storage', {
  name: 'wyl'
})
// info.value = null
const msg = ref(0)
const add = () => {
  msg.value++ 
}
const test = ref('测试')
const message = ref()
const handleEmit = () => {
  emitter.emit('msg', 'test')
}
</script>